package com.ruoyi.union.service.impl;

import com.ruoyi.union.domain.Association;
import com.ruoyi.union.mapper.AssociationMapper;
import com.ruoyi.union.service.IAssociationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AssociationServiceImpl implements IAssociationService {
    @Resource
    private AssociationMapper associationMapper;

    @Override
    public Association selectAssociationById(Long id) {
        return associationMapper.selectAssociationById(id);
    }

    @Override
    public List<Association> selectAssociationList(Association query) {
        return associationMapper.selectAssociationList(query);
    }

    @Override
    public int insertAssociation(Association association) {
        return associationMapper.insertAssociation(association);
    }

    @Override
    public int updateAssociation(Association association) {
        return associationMapper.updateAssociation(association);
    }

    @Override
    public int deleteAssociationByIds(Long[] ids) {
        return associationMapper.deleteAssociationByIds(ids);
    }

    @Override
    public int deleteAssociationById(Long id) {
        return associationMapper.deleteAssociationById(id);
    }
}


